package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.domain.TbRedRecord;
import com.bwie.service.TbRedRecordService;
import com.bwie.mapper.TbRedRecordMapper;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author xinghe
* @description 针对表【tb_red_record】的数据库操作Service实现
* @createDate 2025-06-17 18:06:41
*/
@Service
public class TbRedRecordServiceImpl extends ServiceImpl<TbRedRecordMapper, TbRedRecord>
    implements TbRedRecordService{

    @Autowired
    private TbRedRecordMapper tbRedRecordMapper;
    @Override
    public R onRecord(Integer recordId) {

        List<TbRedRecord> tbRedRecord = tbRedRecordMapper.selectByRecordId(recordId);

        return R.OK(tbRedRecord);
    }
}




